package cl.sodexo.com.utils;

public final class StringUtils {
	
	public static final String addSlashes(String str){
		String result = null;
		
		if(str.equals(null)){
			return result;
		}
		
		StringBuilder stBuilder = new StringBuilder(str);
		
		for (int i = 0; i < stBuilder.length(); i++) {
			if(stBuilder.charAt(i) == '\''){
				stBuilder.insert (i++, '\\');
			}
		}
		
		return stBuilder.toString();
	}

}
